<?php

namespace addons\Employees\common\enums;
use common\enums\BaseEnum;
/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class PoliticalEnum extends BaseEnum
{
    const zhonggong = 0;
    const yubei = 1;
    const tuanyuan = 2;
    const minge = 3;
    const minmeng = 4;
    const minjian = 5;
    const mingjin = 6;
    const nonggong = 7;
    const zhigong = 8;
    const jiusan = 9;
    const taimeng = 10;
    const nopart = 11;
    const crowd = 12;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::zhonggong => '中共党员',
            self::yubei => '中共预备党员',
            self::tuanyuan => '共青团员',
            self::minge => '民革党员',
            self::minmeng => '民盟盟员',
            self::minjian => '民建会员',
            self::mingjin => '民进会员',
            self::nonggong => '农工党党员',
            self::zhigong => '致公党党员',
            self::jiusan => '九三学社社员',
            self::taimeng => '台盟盟员',
            self::nopart => '无党派人士',
            self::crowd => '群众',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}